<%@ page contentType="text/html; charset=utf-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加行业知识</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/zDialog.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/zDrag.js"></script>
<script type="text/javascript"   src="${pageContext.request.contextPath}/js/DatePicker/WdatePicker.js" charset="UTF-8"></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CountryDAO.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/ProductDAO.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/KnowledgeAreaDAO.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/InstitutionDAO.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/ContentTypeDAO.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/DocumentTypeDAO.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script>
<link href="${pageContext.request.contextPath}/css/cont.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script>
<link href="${pageContext.request.contextPath}/document/divcss5.css" rel="stylesheet" media="screen" type="text/css" />
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/document/j.js" ></script>
<script type="text/javascript">
            function getDAO()
            {
                CountryDAO.findAll(callbackcountry);
                ProductDAO.findAll(callbackproduct);
                InstitutionDAO.findAll(callbackInstitution);
                KnowledgeAreaDAO.findAll(callbackKnowledgeArea);
                ContentTypeDAO.findAll(callbackContentType);
                DocumentTypeDAO.findAll(callbackgroup);
           
            }
                      
            function callbackcountry(data){  
                dwr.util.removeAllOptions("country");
                dwr.util.addOptions("country",{'-1':'--请选择--'});
                dwr.util.addOptions("country",data,        "id","name");  
                var a = "<s:property value="knowledge.country" />";
       
                if (typeof(a) != "undefined") 
                {                      
                    dwr.util.setValue("country",a);  
                }  
 
            }
            function callbackproduct(data){ 
                dwr.util.removeAllOptions("products");
                dwr.util.addOptions("products",{'-1':'--请选择--'});
                dwr.util.addOptions("products",data,        "id","name");  
                var a = "<s:property value="knowledge.product" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("products",a);  
                }  
            }
            
            function callbackKnowledgeArea(data){  
                dwr.util.removeAllOptions("knowledgeArea");
                dwr.util.addOptions("knowledgeArea",{'-1':'--请选择--'});
                dwr.util.addOptions("knowledgeArea",data,        "id","name");  
                var a = "<s:property value="knowledge.knowledgeArea" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("knowledgeArea",a);                      
                }  
 
            }
            function callbackInstitution(data){ 
                dwr.util.removeAllOptions("institution");
                dwr.util.addOptions("institution",{'-1':'--请选择--'});
                dwr.util.addOptions("institution",data,        "id","name");  
                var a = "<s:property value="knowledge.institution" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("institution",a);  
                }  

            }
            
            function callbackContentType(data){ 
                dwr.util.removeAllOptions("ctype");
                dwr.util.addOptions("ctype",{'-1':'--请选择--'});
                dwr.util.addOptions("ctype",data,        "id","name");  
                var a = "<s:property value="knowledge.contentType" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("ctype",a);  
                }  
            }
            
            function callbackgroup(data){  //显示出紧急度
                dwr.util.removeAllOptions("typeCode");
                dwr.util.addOptions("typeCode",{'-1':'--请选择--'});
                dwr.util.addOptions("typeCode",data,        "id","name");  
                var a = "<s:property value="knowledge.docTypeCode" />";            
                if (typeof(a) != "undefined") 
                {                      
                    dwr.util.setValue("typeCode",a);                  
                }  
            }
            
            function sub(){
                return true;
            }
            var timer;

        </script>
<script type="text/javascript">
            function a()
            { 
                   
                document.getElementById("dctype").style.display="block";
                  
            }
            function b()
            { 
                document.getElementById("dctype").style.display="none";
               
            }     
        </script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/kindeditor/kindeditor3.5.6.js" charset="UTF-8"></script>
<script type="text/javascript">
            KE.show({
                id : "editor",
                width : "800px",
                height : "1000px",		    
                resizeMode : 1,
                allowFileManager : true,
                /*图        片上传的SERVLET路径*/
                imageUploadJson: "${pageContext.request.contextPath}/keplugin/KEUplo        adImg.servlet",
                fileManagerJson : "${pageContext.request.contextPath}/keplugin/KEManageImages.servlet",
                //缺省为 *.*表示所有类型文件
                //accessoryTyp        es: "doc|docx",
                accessoryUploadJson: "${pageContext.request.contextPath}/keplugin/KEUploadAttach.servlet"   
            });
        </script>
<style>
            body,td,th{font-size:12px}
            .alllisttitle{ padding-left:10px}
            a:link,a:visited{ color:#000000; text-decoration:none}
            a:hover{ color:#ff0000; text-decoration:none}
            select{ background:#ffffff!important}
        </style>
<script type="text/javascript">
            $(document).ready(function(){
                $("#input_nav1").mouseover(function(){
                    $("#table_nav1").css("display","block");
                });
                $("#table_nav1").mouseover(function(){
                    $("#table_nav1").css("display","block");
                });
                $("#input_nav1").mouseout(function(){
                    $("#table_nav1").css("display","none");
                });
                $("#table_nav1").mouseout(function(){
                    $("#table_nav1").css("display","none");
                });



                $("#input_nav2").mouseover(function(){
                    $("#table_nav2").css("display","block");
                });
                $("#table_nav2").mouseover(function(){
                    $("#table_nav2").css("display","block");
                });
                $("#input_nav2").mouseout(function(){
                    $("#table_nav2").css("display","none");
                });
                $("#table_nav2").mouseout(function(){
                    $("#table_nav2").css("display","none");
                });


                $("#input_nav3").mouseover(function(){
                    $("#table_nav3").css("display","block");
                });
                $("#table_nav3").mouseover(function(){
                    $("#table_nav3").css("display","block");
                });
                $("#input_nav3").mouseout(function(){
                    $("#table_nav3").css("display","none");
                });
                $("#table_nav3").mouseout(function(){
                    $("#table_nav3").css("display","none");
                });


                $("#input_nav4").mouseover(function(){
                    $("#table_nav4").css("display","block");
                });
                $("#table_nav4").mouseover(function(){
                    $("#table_nav4").css("display","block");
                });
                $("#input_nav4").mouseout(function(){
                    $("#table_nav4").css("display","none");
                });
                $("#table_nav4").mouseout(function(){
                    $("#table_nav4").css("display","none");
                });


                $("#input_nav5").mouseover(function(){
                    $("#table_nav5").css("display","block");
                });
                $("#table_nav5").mouseover(function(){
                    $("#table_nav5").css("display","block");
                });
                $("#input_nav5").mouseout(function(){
                    $("#table_nav5").css("display","none");
                });
                $("#table_nav5").mouseout(function(){
                    $("#table_nav5").css("display","none");
                });
            });
        </script>
<script type="text/javascript">
            function nav1(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav1').value="";
                    document.getElementById('knowledge.knowledgeArea').value=-1;
                    document.getElementById('knowledge.knowledgeAreaName').value="";
                    $("#table_nav1").css("display","none");
                }
                else{
                    document.getElementById('input_nav1').value= document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.knowledgeAreaName').value=document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.knowledgeArea').value=id.substring(1);
                    $("#table_nav1").css("display","none");
                }
                   
               

            };
            function nav2(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav2').value="";
                    document.getElementById('knowledge.contentType').value=-1;
                    document.getElementById('knowledge.contentTypeName').value="";
                    $("#table_nav2").css("display","none");
                }
                else{
                  
                    document.getElementById('input_nav2').value= document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.contentType').value=document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.contentType').value=id.substring(1);
                    $("#table_nav2").css("display","none");
                }
                   

            };
            function nav3(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav3').value="";
                    document.getElementById('knowledge.institution').value=-1
                    document.getElementById('knowledge.institutionName').value="";
                    $("#table_nav3").css("display","none");
                }
                else
                {   
                    document.getElementById('input_nav3').value= document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.institution').value=id.substring(1);
                    document.getElementById('knowledge.institutionName').value=document.getElementById(id).innerHTML;
                }
                  
                $("#table_nav3").css("display","none");

            };
         
        </script>
<!--国家js开始-->
<script type="text/javascript">
            var menuids=["suckertree"]

            function buildsubmenus(){
                for (var i=0; i<menuids.length; i++){
                    var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
                    for (var t=0; t<ultags.length; t++){
                        ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
                        ultags[t].parentNode.onmouseover=function(){
                            this.getElementsByTagName("ul")[0].style.display="block"
                        }
                        ultags[t].parentNode.onmouseout=function(){
                            this.getElementsByTagName("ul")[0].style.display="none"
                        }
                    }
                }
            }

            if (window.addEventListener)
                window.addEventListener("load", buildsubmenus, false)
            else if (window.attachEvent)
                window.attachEvent("onload", buildsubmenus)
        </script>
<script type="text/javascript">
            function nav(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('text').innerHTML="";
                    document.getElementById('knowledge.country').value=-1;
                    document.getElementById('knowledge.countryName').value="";
                    $(".suckertree_ul").css("display","none");
                }
                else{
                    document.getElementById('text').innerHTML= document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.country').value=id.substring(1);
                    document.getElementById('knowledge.countryName').value=document.getElementById(id).innerHTML;
                    $(".suckertree_ul").css("display","none");
                }

            };
        </script>
<!--国家js结束-->
<script type="text/javascript">
            $(document).ready(function(){
                $("#cplb_tab1").mouseover(function(){
                    $("#cplb_tab1").css("background","#D3E0F3");
                    $("#cplb_tab1").css("border-right","0");
                    $("#cplb_tab1").css("border-left","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-top","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-bottom","2px solid #F3BE18");
                    $("#cplb_nav1").css("display","block");
                    $("#cplb_nav2").css("display","none");
                    $("#cplb_nav3").css("display","none");
                    $("#cplb_tab2").css("background","#EAF1F7");
                    $("#cplb_tab2").css("border-top","0");
                    $("#cplb_tab2").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("background","#EAF1F7");
                    $("#cplb_tab3").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("border-top","0");
                });

                $("#cplb_tab2").mouseover(function(){
                    $("#cplb_tab2").css("background","#D3E0F3");
                    $("#cplb_tab2").css("border-right","0");
                    $("#cplb_tab2").css("border-left","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-top","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-bottom","2px solid #F3BE18");
                    $("#cplb_nav2").css("display","block");
                    $("#cplb_nav1").css("display","none");
                    $("#cplb_nav3").css("display","none");
                    $("#cplb_tab1").css("background","#EAF1F7");
                    $("#cplb_tab1").css("border-top","0");
                    $("#cplb_tab1").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("background","#EAF1F7");
                    $("#cplb_tab3").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("border-top","0");
                });

                $("#cplb_tab3").mouseover(function(){
                    $("#cplb_tab3").css("background","#D3E0F3");
                    $("#cplb_tab3").css("border-right","0");
                    $("#cplb_tab3").css("border-left","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-top","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-bottom","2px solid #F3BE18");
                    $("#cplb_nav3").css("display","block");
                    $("#cplb_nav1").css("display","none");
                    $("#cplb_nav2").css("display","none");
                    $("#cplb_tab2").css("background","#EAF1F7");
                    $("#cplb_tab2").css("border-top","0");
                    $("#cplb_tab2").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab1").css("background","#EAF1F7");
                    $("#cplb_tab1").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab1").css("border-top","0");
                });

                $("#cplb_eav").mouseover(function(){
                    $("#cplb_big").css("display","block");
                });
                $("#cplb_eav").mouseout(function(){
                    $("#cplb_big").css("display","none");
                });
                $("#cplb_big").mouseover(function(){
                    $("#cplb_big").css("display","block");
                });
                $("#cplb_big").mouseout(function(){
                    $("#cplb_big").css("display","none");
                });
            });
        </script>
<script type="text/javascript">
            function nav5(id){
                document.getElementById('text5').innerHTML= document.getElementById(id).innerHTML
                document.getElementById('knowledge.productName').value= document.getElementById(id).innerHTML;
          
                document.getElementById('knowledge.product').value=id;
                $("#cplb_big").css("display","none");
            };
            
            
            function check()
            {  
                var knowledgeArea=   document.getElementById('input_nav1').value;
             
                var contentType= document.getElementById('input_nav2').value;
              
                var institution = document.getElementById("input_nav3").value ;
                
                var countryname= document.getElementById('text').innerHTML;
               
             
                var producetname=  document.getElementById('text5').innerHTML;
               
              
                document.getElementById("knowledge.knowledgeAreaName").value=knowledgeArea;
               
                document.getElementById("knowledge.contentTypeName").value=contentType;
                      
                document.getElementById("knowledge.institutionName").value=institution;
                //  alert("productname ");             
                document.getElementById("knowledge.countryName").value=countryname;
                //   alert("groupname ");
                document.getElementById("knowledge.productName").value=producetname;
                
                document.form.submit();
            }
        
            
        </script>
<script type="text/javascript">
            function getDAO()
            {
                CountryDAO.findAll(callbackcountry);
                ProductDAO.findAll(callbackproduct);
                InstitutionDAO.findAll(callbackInstitution);
                KnowledgeAreaDAO.findAll(callbackKnowledgeArea);
                ContentTypeDAO.findAll(callbackContentType);
           
            }
                      
            function callbackcountry(data){  
                dwr.util.removeAllOptions("country");
                dwr.util.addOptions("country",{'-1':'--请选择--'});
                dwr.util.addOptions("country",data,         "id","name");  
                var a = "<s:property value="knowledge.country" />";
       
                if (typeof(a) != "undefined") 
                {                      
                    dwr.util.setValue("country",a);  
                }  
 
            }
            function callbackproduct(data){ 
                dwr.util.removeAllOptions("products");
                dwr.util.addOptions("products",{'-1':'--请选择--'});
                dwr.util.addOptions("products",data,         "id","name");  
                var a = "<s:property value="knowledge.product" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("products",a);  
                }  
            }
            
            function callbackKnowledgeArea(data){  
                dwr.util.removeAllOptions("knowledgeArea");
                dwr.util.addOptions("knowledgeArea",{'-1':'--请选择--'});
                dwr.util.addOptions("knowledgeArea",data,         "id","name");  
                var a = "<s:property value="knowledge.knowledgeArea" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("knowledgeArea",a);  
                }  
 
            }
            function callbackInstitution(data){ 
                dwr.util.removeAllOptions("institution");
                dwr.util.addOptions("institution",{'-1':'--请选择--'});
                dwr.util.addOptions("institution",data,         "id","name");  
                var a = "<s:property value="knowledge.institution" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("institution",a);  
                }  
            }
            
            function callbackContentType(data){ 
                dwr.util.removeAllOptions("ctype");
                dwr.util.addOptions("ctype",{'-1':'--请选择--'});
                dwr.util.addOptions("ctype",data,         "id","name");  
                var a = "<s:property value="knowledge.contentType" />";
       
                if (typeof(a) != "undefined") 
                {   
                   
                    dwr.util.setValue("ctype",a);  
                }  
            }
            function check()
            {  
                var knowledgeArea=   document.getElementById('input_nav1').value;
             
                var contentType= document.getElementById('input_nav2').value;
              
                var institution = document.getElementById("input_nav3").value ;
                
                var countryname= document.getElementById('text').innerHTML;
               
             
                var producetname=  document.getElementById('text5').innerHTML;
               
              
                document.getElementById("knowledge.knowledgeAreaName").value=knowledgeArea;
               
                document.getElementById("knowledge.contentTypeName").value=contentType;
                      
                document.getElementById("knowledge.institutionName").value=institution;
                //  alert("productname ");             
                document.getElementById("knowledge.countryName").value=countryname;
                //   alert("groupname ");
                document.getElementById("knowledge.productName").value=producetname;
                
                document.form.submit();
            }

        </script>

<script type="text/javascript"> 
            function showarea1(){ 
                var con = document.getElementById("t_area1"); 
                var arealist = con.getElementsByTagName("li"); 
                var g = document.getElementById("t_con1") 
                con.style.display = "block"; 
                for (var i=0;i<arealist.length;i++){ 
                    arealist[i].onclick = function(){ 
                      
                        if(this.innerText=="所有(清空条件)")
                        {
                           document.getElementById("t_con1").innerText="";
                        }
                        else
                            {
                                
                                   g.innerText = this.innerText ; 
                                   document.getElementById("knowledge.docTypeName").value=this.innerText;
                            }
                     
                        con.style.display = "none"; 
                    } 
                } 
        } 
        function offarea1(){ 
            var con = document.getElementById("t_area1"); 
            con.style.display = "none"; 
        } 
        var timer1; 
        </script>
<style type="text/css"> 
            *{ padding:0; margin:0; list-style-type:none;} 
            body{font-family: "宋体";font-size: 12px;} 
            #t_con1{ float:left;width:80px; line-height:25px; height:25px;color:#00F; cursor:pointer;border:1px #cccccc solid; text-align:center;} 
            #t_area1{ position:absolute;width:1023px; overflow:hidden; border:3px #AAADA8 solid; background-color:#ffffff; top:25px; left:-225px;padding-bottom:10px;display:none; } 
            #t_area1 ul{} 
            #t_area1 li{ width:60px; height:25px; float:left; display:inline;  text-align:left!important; line-height:25px; margin:4px auto auto 5px; } 
            #t_area1 li a:link,#t_area1 li a:visited{ color:#444444; text-decoration:none; text-align:left!important} 
            #t_area1 li a:hover{ color:#ff0000; text-decoration:none; text-align:left!important} 

            #t_con2{ float:left;width:100px; line-height:25px; height:25px;color:#00F; cursor:pointer;border:1px #cccccc solid; text-align:center;} 
            #t_area2{ position:absolute;width:268px; overflow:hidden; border:2px #cccccc solid; background-color:#ffffff; top:20px; left:0;padding-bottom:10px;display:none; } 
            #t_area2 ul{} 
            #t_area2 li{ width:60px; height:18px; float:left; display:inline; text-align:center; line-height:25px; margin:4px auto auto 5px; } 
            #t_area2 li a:link,#t_area2 li a:visited{ color:#444444;text-decoration:none;} 
            #t_area2 li a:hover{ color:#ff0000; text-decoration:none;} 
        </style>
</head>
<body >
<s:form id="form" name="form" action="%{actionURI}.action" method="post" theme="simple" namespace="/knowledage">
<s:hidden id="page" name="page"></s:hidden>
<s:hidden id="pageSize" name="pageSize"></s:hidden>
<s:hidden id="knowledge.knowledgeAreaName" name="knowledge.knowledgeAreaName"></s:hidden>
<s:hidden id="knowledge.institutionName" name="knowledge.institutionName"></s:hidden>
<s:hidden id="knowledge.contentTypeName" name="knowledge.contentTypeName"></s:hidden>
<s:hidden id="knowledge.countryName" name="knowledge.countryName"></s:hidden>
<s:hidden id="knowledge.productName" name="knowledge.productName"></s:hidden>
<s:hidden id="knowledge.docTypeCode" name="knowledge.docTypeCode"></s:hidden>
<s:hidden id="knowledge.docTypeName" name="knowledge.docTypeName"></s:hidden>
<s:hidden id="knowledge.knowledgeArea" name="knowledge.knowledgeArea" value="-2"></s:hidden>
<s:hidden id="knowledge.institution" name="knowledge.institution" value="-2"></s:hidden>
<s:hidden id="knowledge.contentType" name="knowledge.contentType" value="-2"></s:hidden>
<s:hidden id="knowledge.country" name="knowledge.country" value="-2"></s:hidden>
<s:hidden id="knowledge.product" name="knowledge.product" value="-2"></s:hidden>
<s:if test="actionURI=='save'">
<table width="80%" height="" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#b5d6e6">
<tr height="28">
  <td width="12%" align="right" bgcolor="#deebf1"><b>标题：</b> </td>
  <td width="37%" bgcolor="#FFFFFF"><s:textfield id="knowledge.name" name="knowledge.name" cssStyle="width: 60%"/>
  </td>
</tr>
<tr height="28">
  <td width="12%" align="right"  bgcolor="#deebf1"><b>编码：</b> </td>
  <td width="37%" bgcolor="#FFFFFF"><s:textfield id="knowledge.code" name="knowledge.code" cssStyle="width: 60%"/>
  </td>
</tr>
<tr height="28">
  <td width="12%" align="right"  bgcolor="#deebf1"><b>知识领域：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:1000"><div style="background:#ffffff;height:24px;float:left">
      <input style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand" id="input_nav1" value="${knowledge.knowledgeAreaName}"/>
    </div>
    <table width="400" id="table_nav1" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:0px;_top:0px;left:88px;">
      <tr>
        <td style="text-align:center"><a href="#" id="ka" onClick="nav1('ka')">所有(清空条件)</a></td>
      </tr>
      <s:iterator value="kalist" var="ka" status="u" >
        <s:if test="#u.count % 3==0">
          <tr> 
        </s:if>
        <td style="text-align:center; line-height:24px"><a href="#" id="k${ka.id}" onClick="nav1('k${ka.id}')">${ka.name}</a></td>
          <s:if test="#u.count % 3==0">
        </tr>
        </s:if>
        
      </s:iterator>
    </table></td>
</tr>
<tr height="28">
  <td width="12%" align="right" bgcolor="#deebf1"><b>内容分类：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:999"><div style="background:#ffffff;height:24px;float:left">
      <input id="input_nav2" value="${knowledge.contentTypeName}" style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand"/>
    </div>
    <table width="400" id="table_nav2" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:0px;_top:0px;left:88px;">
      <tr>
        <td style="text-align:center;"><a href="#" id="c" onClick="nav2('c')">所有(清空条件)</a></td>
      </tr>
      <s:iterator value="ctlist" var="ka" status="u" >
        <s:if test="#u.count % 3==0">
          <tr> 
        </s:if>
        <td style="text-align:center;line-height:24px"><a href="#" id="c${ka.id}" onClick="nav2('c${ka.id}')">${ka.name}</a></td>
          <s:if test="#u.count % 3==0">
        </tr>
        </s:if>
        
      </s:iterator>
    </table></td>
</tr>
<tr height="28">
  <td width="12%" align="right"  bgcolor="#deebf1"><b>主导机构：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:998"><div style="background:#ffffff;height:24px;float:left">
      <input id="input_nav3" value="${knowledge.institutionName}" style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand"/>
    </div>
    <table width="400" id="table_nav3" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:0px;_top:0px;left:88px;">
      <tr>
        <td style="text-align:center"><a href="#" id="i" onClick="nav3('i')">所有(清空条件)</a></td>
      </tr>
      <s:iterator value="ilist" var="ka" status="u" >
        <s:if test="(#u.count+3) % 4==0">
          <tr> 
        </s:if>
        <td style="text-align:center; line-height:24px"><a href="#" id="i${ka.id}" onClick="nav3('i${ka.id}')">${ka.name}</a></td>
          <s:if test="(#u.count+1) % 4==0||#u.last">
        </tr>
        </s:if>
        
      </s:iterator>
    </table></td>
</tr>
<tr height="28">
  <td width="12%" align="right"  bgcolor="#deebf1"><b>采购国：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:997"><div class="suckerdiv">
      <ul id="suckertree">
        <li class="suckerdiv_li"><a href="#" id="text" style=" padding-left:5px;border:1px solid #cccccc;">
          <s:property value="document.countryName"/>
          </a>
          <ul class="suckertree_ul" style=";z-index:0;top:0px;_top:0px;left:88px; z-index:1000">
            <li class="suckertree_ul_li" style="z-index:9999; width:398px"><a href="#" style="z-index:9999;width:398px;" id="font9999" onClick="nav('font9999')">所有(清空条件)</a>
              <s:iterator value="clist" var="c" status="u">
            <li class="suckertree_ul_li" style="z-index:-${u.index}"><a href="#" style="z-index:-${u.index}" id="c${c.id}" onClick="nav('c${c.id}')">${c.name}</a>
              <s:if test="#c.list!=null">
                <ul>
                  <s:iterator value="#c.list" var="c2" status="uu">
                    <li><a href="#" id="c${c2.id}" onClick="nav('c${c2.id}')">${c2.name}</a></li>
                  </s:iterator>
                </ul>
              </s:if>
            </li>
            </s:iterator>
          </ul>
        </li>
      </ul>
    </div>
    <!--国家结束-->
  </td>
</tr>
<tr height="28">
<td width="12%" align="right"  bgcolor="#deebf1"><b>产品：</b> </td>
<td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:996" >
<div style="float:left; width:85px; height:24px; border:1px solid #cccccc; background:#ffffff" id="cplb_eav"><span style=" float:left;width:75px; height:24px; background:url(../images/jiansuo_bg.jpg) no-repeat right; padding:0 7px 0 3px;cursor:hand;" id="text5">${knowledge.productName}</span></div>
<table width="700" style="border:1px solid #ADCAF2;display:none; position:absolute; background:#ffffff;top:24px;left:0;" cellpadding="0" cellspacing="0" id="cplb_big">
  <tr>
  
  <td valign="top" style="border-right:1px solid #F2BC14; width:35px;"><table border="0" cellpadding="0" cellspacing="0" style="width:35px; margin-right:-6px">
      <s:iterator value="proList" var="p" status="u">
        <tr>
          <td height="80px" class="cplb_tab_link" id="cplb_tab${u.index+1}">${p.name}</td>
        </tr>
      </s:iterator>
    </table></td>
  <td width="965" valign="top" class="cplb_td">
  
  <!--工业品-->
  <s:iterator value="proList" var="p" status="u">
  
  <s:if test="#u.first" >
  
  <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav${u.index+1}">
    </s:if>
    
    <s:else>
    
    <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav${u.index+1}" style="display:none">
      </s:else>
      
      <s:iterator value="#p.produceObjlist" var="p1" status="p3">
        <tr>
          <td width="33%"><table width="100%" border="0" cellspacing="0" cellpadding="0" style=" background:url(images/cplb_bg.jpg) repeat-x top">
              <tr>
                <td style="padding:0 5px 0 5px;"><strong><a href="#" id="${p1.id}" onClick="nav5('${p1.id}')">${p1.name}</a></strong></td>
              </tr>
              <tr>
                <td style="padding:0 5px 0 5px;"><s:iterator value="#p1.produceObjlist" var="p2" status="p2sta"> <a href="#" id="${p2.id}" onClick="nav5('${p2.id}')">${p2.name}</a>
                    <s:if test="#p2sta.last"> </s:if>
                    <s:else>|</s:else>
                  </s:iterator>
                </td>
              </tr>
            </table></td>
        </tr>
      </s:iterator>
    </table>
    </s:iterator>
    
    </td>
    
    </tr>
    
  </table>
  </td>
  
  </tr>
  
  <tr height="28">
    <td width="12%" align="right"  bgcolor="#deebf1"><b>和某单证相关：</b> </td>
    <td width="37%" bgcolor="#FFFFFF"><table>
        <tr>
          <td><input type=radio name=knowledge.relateDoc id=1 value="yes" onclick=a(); style="width:15px; border:0"></td>
          <td>是</td>
          <td><input type=radio name=knowledge.relateDoc id=2 value="no" onclick=b(); checked style="width:15px; border:0"></td>
          <td>否</td>
        </tr>
      </table></td>
  </tr>
  <tr height="28">
    <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>单证类别：</b> </td>
    <td style="z-index:10000; background:#FFFFFF"><div id="dctype" style="position:relative; float:left; width:380px; height:25px; margin-top:3px; background:#ffffff ;display: none">
        <div id="t_con1" style="background:url(../images/jiansuo_bg.jpg) no-repeat right; text-align:left;color:#444444; width:380px;height:23px; line-height:23px" onMouseOver="showarea1();clearTimeout(timer1)" onMouseOut="timer1=setTimeout('offarea1()',200);">${document.typeName}</div>
        <div id="t_area1" onMouseOver="showarea1()" onMouseOut="offarea1();clearTimeout(timer1)">
          <ul>
            <li style="height:auto;width:528px"><a href="#">所有(清空条件)</a></li>
          </ul>
          <s:iterator value="typeList" var="t" status="u">
            <ul>
              <li style="height:auto"><a href="#">${t.name}</a></li>
            </ul>
          </s:iterator>
        </div>
      </div></td>
  </tr>
  <tr height="28">
    <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>采编时间：</b> </td>
    <td width="37%" bgcolor="#FFFFFF"><s:textfield id="knowledge.time" name="knowledge.time" 
                                     onclick="WdatePicker()" cssClass="Wdate"
                                     onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:30%"></s:textfield>
    </td>
  </tr>
  <tr>
    <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>内容：</b> </td>
    <td width="39%" bgcolor="#FFFFFF"><textarea id="editor" name="knowledge.content" style="width:700px;height:900px;"></textarea>
    </td>
  </tr>
</table>
</s:if>
<s:else>
<s:hidden id="knowledge.id" name="knowledge.id"></s:hidden>
<table width="80%" height="" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#b5d6e6">
<tr height="28">
  <td width="12%" align="right" bgcolor="#deebf1"><b>标题：</b> </td>
  <td width="37%" bgcolor="#FFFFFF"><input type="text" id="knowledge.name" name="knowledge.name" value="<s:property value="knowledge.name"/>
    " cssStyle="width: 60%"/> </td>
</tr>
<tr height="28">
  <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>编码：</b> </td>
  <td width="37%" bgcolor="#FFFFFF"><input type="text" id="knowledge.code" name="knowledge.code" value="<s:property value="knowledge.code"/>
    " cssStyle="width: 60%"/> </td>
</tr>
<tr height="28">
  <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>知识领域：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:1000"><div style="background:#ffffff;height:24px;float:left">
      <input style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand" id="input_nav1" value="${knowledge.knowledgeAreaName}"/>
    </div>
    <table width="400" id="table_nav1" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:0px;_top:0px;left:88px;">
      <tr>
        <td style="text-align:center"><a href="#" id="ka" onClick="nav1('ka')">所有(清空条件)</a></td>
      </tr>
      <s:iterator value="kalist" var="ka" status="u" >
        <s:if test="#u.count % 3==0">
          <tr> 
        </s:if>
        <td style="text-align:center; line-height:24px"><a href="#" id="k${ka.id}" onClick="nav1('k${ka.id}')">${ka.name}</a></td>
          <s:if test="#u.count % 3==0">
        </tr>
        </s:if>
        
      </s:iterator>
    </table></td>
</tr>
<tr height="28">
  <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>内容分类：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:999"><div style="background:#ffffff;height:24px;float:left">
      <input id="input_nav2" value="${knowledge.contentTypeName}" style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand"/>
    </div>
    <table width="400" id="table_nav2" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:0px;_top:0px;left:88px;">
      <tr>
        <td style="text-align:center;"><a href="#" id="c" onClick="nav2('c')">所有(清空条件)</a></td>
      </tr>
      <s:iterator value="ctlist" var="ka" status="u" >
        <s:if test="#u.count % 3==0">
          <tr> 
        </s:if>
        <td style="text-align:center;line-height:24px"><a href="#" id="c${ka.id}" onClick="nav2('c${ka.id}')">${ka.name}</a></td>
          <s:if test="#u.count % 3==0">
        </tr>
        </s:if>
        
      </s:iterator>
    </table></td>
</tr>
<tr height="28">
  <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>主导机构：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:998"><div style="background:#ffffff;height:24px;float:left">
      <input id="input_nav3" value="${knowledge.institutionName}" style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand"/>
    </div>
    <table width="400" id="table_nav3" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:0px;_top:0px;left:88px;">
      <tr>
        <td style="text-align:center"><a href="#" id="i" onClick="nav3('i')">所有(清空条件)</a></td>
      </tr>
      <s:iterator value="ilist" var="ka" status="u" >
        <s:if test="(#u.count+3) % 4==0">
          <tr> 
        </s:if>
        <td style="text-align:center; line-height:24px"><a href="#" id="i${ka.id}" onClick="nav3('i${ka.id}')">${ka.name}</a></td>
          <s:if test="(#u.count+1) % 4==0||#u.last">
        </tr>
        </s:if>
        
      </s:iterator>
    </table></td>
</tr>
<tr height="28">
  <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>采购国：</b> </td>
  <td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:997"><div class="suckerdiv">
      <ul id="suckertree">
        <li class="suckerdiv_li"><a href="#" id="text" style=" padding-left:5px;border:1px solid #cccccc;">
          <s:property value="knowledge.countryName"/>
          </a>
          <ul class="suckertree_ul" style=";z-index:0;top:0px;_top:0px;left:88px; z-index:1000">
            <li class="suckertree_ul_li" style="z-index:9999; width:398px"><a href="#" style="z-index:9999;width:398px;" id="font9999" onClick="nav('font9999')">所有(清空条件)</a>
              <s:iterator value="clist" var="c" status="u">
            <li class="suckertree_ul_li" style="z-index:-${u.index}"><a href="#" style="z-index:-${u.index}" id="c${c.id}" onClick="nav('c${c.id}')">${c.name}</a>
              <s:if test="#c.list!=null">
                <ul>
                  <s:iterator value="#c.list" var="c2" status="uu">
                    <li><a href="#" id="c${c2.id}" onClick="nav('c${c2.id}')">${c2.name}</a></li>
                  </s:iterator>
                </ul>
              </s:if>
            </li>
            </s:iterator>
          </ul>
        </li>
      </ul>
    </div>
    <!--国家结束-->
  </td>
</tr>
<tr height="28">
<td width="12%" align="right" nowrap bgcolor="#deebf1"><b>产品：</b> </td>
<td width="37%" bgcolor="#FFFFFF" style="position:relative;z-index:996" >
<div style="float:left; width:85px; height:24px; border:1px solid #cccccc; background:#ffffff" id="cplb_eav"><span style=" float:left;width:75px; height:24px; background:url(../images/jiansuo_bg.jpg) no-repeat right; padding:0 7px 0 3px;cursor:hand;" id="text5">${knowledge.productName}</span></div>
<table width="700" style="border:1px solid #ADCAF2;display:none; position:absolute; background:#ffffff;top:24px;left:0;" cellpadding="0" cellspacing="0" id="cplb_big">
  <tr>
  
  <td valign="top" style="border-right:1px solid #F2BC14; width:35px;"><table border="0" cellpadding="0" cellspacing="0" style="width:35px; margin-right:-6px">
      <s:iterator value="proList" var="p" status="u">
        <tr>
          <td height="80px" class="cplb_tab_link" id="cplb_tab${u.index+1}">${p.name}</td>
        </tr>
      </s:iterator>
    </table></td>
  <td width="965" valign="top" class="cplb_td">
  
  <!--工业品-->
  <s:iterator value="proList" var="p" status="u">
  
  <s:if test="#u.first" >
  
  <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav${u.index+1}">
    </s:if>
    
    <s:else>
    
    <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav${u.index+1}" style="display:none">
      </s:else>
      
      <s:iterator value="#p.produceObjlist" var="p1" status="p3">
        <tr>
          <td width="33%"><table width="100%" border="0" cellspacing="0" cellpadding="0" style=" background:url(images/cplb_bg.jpg) repeat-x top">
              <tr>
                <td style="padding:0 5px 0 5px;"><strong><a href="#" id="${p1.id}" onClick="nav5('${p1.id}')">${p1.name}</a></strong></td>
              </tr>
              <tr>
                <td style="padding:0 5px 0 5px;"><s:iterator value="#p1.produceObjlist" var="p2" status="p2sta"> <a href="#" id="${p2.id}" onClick="nav5('${p2.id}')">${p2.name}</a>
                    <s:if test="#p2sta.last"> </s:if>
                    <s:else>|</s:else>
                  </s:iterator>
                </td>
              </tr>
            </table></td>
        </tr>
      </s:iterator>
    </table>
    </s:iterator>
    
    </td>
    
    </tr>
    
  </table>
  </td>
  
  </tr>
  
  <tr height="28">
    <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>和某单证相关：</b> </td>
    <td width="37%" bgcolor="#FFFFFF"><s:if test="knowledge.relateDoc=='yes'" >
        <input type=radio name=knowledge.relateDoc  value="yes" onclick=a(); checked style="width:15px;">
        是
        <input type=radio name=knowledge.relateDoc  value="no" onclick=b();  style="width:15px;border:0">
        否 </s:if>
      <s:else >
        <input type=radio name=knowledge.relateDoc  value="yes" onclick=a(); style="width:15px;border:0">
        是
        <input type=radio name=knowledge.relateDoc  value="no" onclick=b(); checked style="width:15px;border:0">
        否 </s:else>
    </td>
  </tr>
  <tr height="28">
    <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>单证类别码：</b> </td>
    <td style="z-index:10000; background:#FFFFFF">
        <s:if test="knowledge.relateDoc=='yes'" >
            <div id="dctype" style="position:relative; float:left; width:380px; height:25px; margin-top:3px; background:#ffffff; display: block"> 
        </s:if>
        <s:else >
            <div id="dctype" style="position:relative; float:left; width:380px; height:25px; margin-top:3px; background:#ffffff; display: none">
        </s:else>
      
        <div id="t_con1" style="background:url(../images/jiansuo_bg.jpg) no-repeat right; text-align:left;color:#444444; width:380px;height:23px; line-height:23px" onMouseOver="showarea1();clearTimeout(timer1)" onMouseOut="timer1=setTimeout('offarea1()',200);">${knowledge.docTypeName}</div>
        <div id="t_area1" onMouseOver="showarea1()" onMouseOut="offarea1();clearTimeout(timer1)">
          <ul>
            <li style="height:auto;width:528px"><a href="#">所有(清空条件)</a></li>
          </ul>
          <s:iterator value="typeList" var="t" status="u">
            <ul>
              <li style="height:auto"><a href="#">${t.name}</a></li>
            </ul>
          </s:iterator>
        </div>
      </div></td>
  </tr>
  <tr height="28">
    <td width="12%" align="right" nowrap bgcolor="#deebf1"><b>采编时间：</b> </td>
    <td width="37%" bgcolor="#FFFFFF"><input id="knowledge.time" name="knowledge.time" cssClass="Wdate" value= ${knowledge.time}
                                                                                         onclick="WdatePicker()"
                                                                                         onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" style="width:20%"/>
    </td>
  </tr>
  <tr>
    <td width="12%" align="right" nowrap bgcolor="#deebf1" style="vertical-align:top"><b>内容：</b> </td>
    <td width="39%" bgcolor="#FFFFFF"><textarea id="editor" name="knowledge.content" style="width:700px;height:900px;">${knowledge.content}</textarea>
    </td>
  </tr>
</table>
</s:else>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="28">
    <td height="30" colspan="4" nowrap="nowrap" bgcolor="#FFFFFF" class="list_btm" style="text-align: center; border: 1">&nbsp;&nbsp;
      <input type="submit" value=" 保存 " class="mmBtn" style="width:150px"/>
      &nbsp;&nbsp;
      <input type="button" value=" 重置 " class="mmBtn" onClick="resetForm();" style="width:150px"/>
      &nbsp;&nbsp;
      <input type="button" value=" 返回 " onClick="window.location='list.action'" class="mmBtn" style="width:150px"/></td>
  </tr>
</table>
</s:form>
</body>
</html>
